export function uploadFile (file) {
  let timer = null
  return new Promise((resolve, reject) => {
    timer = setTimeout(() => {
      resolve({
        name: file.name,
        uid: file.uid,
        url: file.url
      })
      clearTimeout(timer)
      timer = null
    }, 1000)
  })
}